@import './variables.scss';
@import './mixin.scss';
@import './transition.scss';
@import './element-ui.scss';
@import './sidebar.scss';

$primary: #fa412d;
$subPrimary: #fb5b4a;
$disbPrimary: #febbb4;
body {
  height: 100%;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB, Microsoft YaHei, Arial, sans-serif;
}

label {
  font-weight: 400;
}

html {
  height: 100%;
  box-sizing: border-box;
}

#app {
  height: 100%;
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

a:focus,
a:active {
  outline: none;
}

a,
a:focus,
a:hover {
  cursor: pointer;
  color: inherit;
  text-decoration: none;
}

div:focus {
  outline: none;
}

.clearfix {
  &:after {
    visibility: hidden;
    display: block;
    font-size: 0;
    content: " ";
    clear: both;
    height: 0;
  }
}

// main-container global css
.app-container {
  padding: 20px;
}
.common-layout {
  padding: 24px;
  background: #f0f2f5;
  height: calc(100vh - 50px);
}

.el-button--primary {
  &:hover {
    color: #fff;
  }
}
.el-button--primary,
.el-checkbox__input.is-checked .el-checkbox__inner, 
.el-checkbox__input.is-indeterminate .el-checkbox__inner,
.el-month-table td.end-date .cell, .el-month-table td.start-date .cell,
.el-date-table td.end-date span, .el-date-table td.start-date span,
.el-pagination.is-background .el-pager li:not(.disabled).active {
  background-color: $primary;
  border-color: $primary;
  &:hover {
    background: $subPrimary;
    border-color: $subPrimary;
  }
  &:active, &:focus {
    background-color: $primary;
    border-color: $primary;
  }
}

.el-textarea__inner:focus,
.el-checkbox__inner:hover {
  border-color: $subPrimary;
}
.el-radio-button__orig-radio:checked+.el-radio-button__inner {
  background-color: $primary;
  border-color: $primary;
  box-shadow: -1px 0 0 0 $primary;
}

.el-button--text, 
.el-button--text:hover, 
.el-button--text:focus, 
.el-button--text:active {
  background-color: #fff!important;
  border-color: #fff!important;
}
.el-loading-spinner i,
.el-loading-spinner .el-loading-text,
.el-radio-button__inner:hover, 
.el-button--text, 
.el-button--text:hover, 
.el-button--text:focus, 
.el-button--text:active,
.el-date-table td.today span,
.el-month-table td.today .cell,
.el-pagination.is-background .el-pager li:not(.disabled):hover {
  color: $subPrimary!important;
}

.el-button--primary.is-disabled, 
.el-button--primary.is-disabled:active, 
.el-button--primary.is-disabled:focus, 
.el-button--primary.is-disabled:hover {
  background-color: $disbPrimary;
  border-color: $disbPrimary;
}

.el-popover {
  max-width: 250px;
}